package cn.com.yx.ms.persistence;

import cn.com.yx.ms.application.web.ApiQueryBase;
import cn.com.yx.ms.domain.dbmodel.SysOrg;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysOrgMapper {
    int deleteByPrimaryKey(String guid);

    int insert(SysOrg record);

    int insertSelective(SysOrg record);

    SysOrg selectByPrimaryKey(String guid);

    int updateByPrimaryKeySelective(SysOrg record);

    int updateByPrimaryKey(SysOrg record);

    String getMaxNumber(@Param("parentid") String parentid);

    List<SysOrg> find(ApiQueryBase query);

    int selectCountByOrgCode(@Param("orgcode") String orgcode);

    List<SysOrg> selectAllOrg();
}